//开始计时
import { Behaviour } from "../engine/Behaviour";
import { getGameObjectById } from "../engine";
import { TextRenderer } from "../engine/TextRenderer";
import { BitmapRenderer } from "../engine/BitmapRenderer";
import { Clock } from "./Clock";

export class startClock extends Behaviour{

    onStart(){
        this.gameObject.onClick = () => {
            console.log("点了开始摆摊了噢老铁")
            getGameObjectById('UI_time_text').getBehaviour(Clock).start = true

            //场景转换
            this.engine.scenenumber=3;
            console.log("test",this.engine.scenenumber)
        };
    }
}